package com.xja.friend.service;

import com.github.pagehelper.Page;
import com.xja.friend.entity.Chatuser;

import java.util.List;

import java.util.Map;


public interface ChatuserService {
    //添加
    int insert(Chatuser record)throws  Exception;
    //登录
    Chatuser seleteByName(String userid)throws Exception;
    //分页查询好友
    Page<Chatuser> seletePage(Integer npage, Map map)throws  Exception;
    //根据id查询
    Chatuser seleteBycid(Integer cid)throws Exception;

    //查询登录用户的好友信息
    List<Chatuser> findNickName(Integer mineid)throws  Exception;

    //查询单个
    Chatuser selectByPrimaryKey(Integer id)throws  Exception;

     int updateByPrimaryKey(Chatuser record)throws  Exception;

}
